var ns, app;
app = new Vue({
    el: '#app',
    data: {
        ID: 0,
        form:{},
    },
    methods: {
        get_data: function () {
            var that = this;
            var options = {};
            options.ID = that.ID;
            options.action = "getuserstaffdetail";
            ns.post(options, function (succeed, data, err) {
                console.log(JSON.stringify(data));
                if (succeed) {
                    if(data.status){
                        that.form = data.UserStaffInfo;
                    }else{
                        api.toast({
                            msg: '接口报错',
                            duration: 2000,
                            location: 'bottom'
                        });
                    }
                } else if (err) {
                    api.toast({
                        msg: err,
                        duration: 2000,
                        location: 'bottom'
                    });

                }
            }, {
                toast: true
            });
        },
       

    }
});
apiready = function () {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.ID = api.pageParam.ID;
    app.get_data();
};
